package com.itheima.dao;

import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SetmealDao {

    //分页查询
    List<Setmeal> findPage(QueryPageBean queryPageBean);

    //根据id查询
    Setmeal findById(int id);

    //新增set
    void addSetmeal(Setmeal setmeal);

    //插入Setmealid and groupIds
    void insertSetIdAndGroupIds(@Param("SetmealId") Integer SetmealId,@Param("checkgroupIds") Integer[] checkgroupIds);

}
